/*
 * @Date: 2023-12-26 13:21:09
 * @LastEditors: lyx
 * @LastEditTime: 2023-12-26 13:21:15
 * @FilePath: \taro-template3\src\lib\request\index.ts
 * @Description:
 */
import taroFetch, { request as taroRequest } from "./taro-request";
// import axiosFetch, { request as axiosRequest } from "./axios-request";

// const fetchHandler = process.env.TARO_ENV === "h5" ? axiosFetch : taroFetch;
const fetchHandler = taroFetch;

// export const request =
//   process.env.TARO_ENV === "h5" ? axiosRequest : taroRequest;
export const request = taroRequest;
export default fetchHandler;
